package top.blacknota.web.controller;

import org.osgl.mvc.annotation.GetAction;

/**
 * Created by 撒哈拉来的企鹅 on 2018-2-8.
 */
public class HomeController extends Global{
    @GetAction
    public void home(){
        if (session.get("name")!=null){
            render();
        }else {
            redirect("/user/login/form");
        }
    }
}
